package com.mby.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;
import java.util.HashMap;

/**
 * Created by noah on 2018/5/2.
 */
@Document(collection = "chat_groups")
public class ChatGroup {
    @Id
    private Integer id;
    private String customerId;
    private Integer brandId;
    private String customerName;
    private String plateNo;
    private String model;
    private String dealerId;
    private String[] members;
    private Date deletedAt;
    private Date createdAt;
    private Integer createdBy;
    private String vin;
    private Date weledAt;
    private Integer vhcId;
    private Date healthedAt;
    private Long estHandoverAt;
    private Long qualityCheckAt;
    private Long arrivedAt;
    private Date estHandoverDate;
    private Date qualityCheckDate;
    private Date arrivedDate;
    private Integer est15;
    private Integer status2;
    private Integer checked40;
    private String dispatchingNo;
    private String agentName;
    private String maintainedAt;

    public String getMaintainedAt() {
        return maintainedAt;
    }

    public void setMaintainedAt(String maintainedAt) {
        this.maintainedAt = maintainedAt;
    }

    public String getAgentName() {
        return agentName;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public Long getArrivedAt() {
        return arrivedAt;
    }

    public void setArrivedAt(Long arrivedAt) {
        this.arrivedAt = arrivedAt;
    }

    public Date getArrivedDate() {
        return arrivedDate;
    }

    public void setArrivedDate(Date arrivedDate) {
        this.arrivedDate = arrivedDate;
    }

    public String getDispatchingNo() {
        return dispatchingNo;
    }

    public void setDispatchingNo(String dispatchingNo) {
        this.dispatchingNo = dispatchingNo;
    }

    public Integer getChecked40() {
        return checked40;
    }

    public void setChecked40(Integer checked40) {
        this.checked40 = checked40;
    }

    public Integer getStatus2() {
        return status2;
    }

    public void setStatus2(Integer status2) {
        this.status2 = status2;
    }

    public Integer getEst15() {
        return est15;
    }

    public void setEst15(Integer est15) {
        this.est15 = est15;
    }

    public Date getEstHandoverDate() {
        return estHandoverDate;
    }

    public void setEstHandoverDate(Date estHandoverDate) {
        this.estHandoverDate = estHandoverDate;
    }

    public Date getQualityCheckDate() {
        return qualityCheckDate;
    }

    public void setQualityCheckDate(Date qualityCheckDate) {
        this.qualityCheckDate = qualityCheckDate;
    }

    public Long getQualityCheckAt() {
        return qualityCheckAt;
    }

    public void setQualityCheckAt(Long qualityCheckAt) {
        this.qualityCheckAt = qualityCheckAt;
    }

    public Long getEstHandoverAt() {
        return estHandoverAt;
    }

    public void setEstHandoverAt(Long estHandoverAt) {
        this.estHandoverAt = estHandoverAt;
    }

    public Date getHealthedAt() {
        return healthedAt;
    }

    public void setHealthedAt(Date healthedAt) {
        this.healthedAt = healthedAt;
    }

    public Integer getVhcId() {
        return vhcId;
    }

    public void setVhcId(Integer vhcId) {
        this.vhcId = vhcId;
    }

    public Date getWeledAt() {
        return weledAt;
    }

    public void setWeledAt(Date weledAt) {
        this.weledAt = weledAt;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getVin() {
        return vin;
    }

    public void setVin(String vin) {
        this.vin = vin;
    }

    public Date getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(Date deletedAt) {
        this.deletedAt = deletedAt;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }

    public String[] getMembers() {
        return members;
    }

    public void setMembers(String[] members) {
        this.members = members;
    }

    public String getDealerId() {
        return dealerId;
    }

    public void setDealerId(String dealerId) {
        this.dealerId = dealerId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getPlateNo() {
        return plateNo;
    }

    public void setPlateNo(String plateNo) {
        this.plateNo = plateNo;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public HashMap<String,Object> getPushCustom(){
        HashMap<String,Object> custom = new HashMap<>();
        custom.put("groupId",id);
        custom.put("customerName",customerName);
        custom.put("plateNo",plateNo);
        custom.put("vin",vin);
        custom.put("model",model);
        return custom;
    }
}
